package com.zhku.shoppingspringboot.pojo.vo.order;

import com.zhku.shoppingspringboot.pojo.entity.Address;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author hwy
 * @date 2025-01-02 11:11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@ApiModel(value="CreateOrderVO对象", description="生成订单")
public class CreateOrdersVO implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("地址")
    private List<Address> addresses;

    @ApiModelProperty("商品信息")
    private List<OrderGoodsMsgVO> goods;

    @ApiModelProperty("商品总数")
    private Integer goodsCount;

    @ApiModelProperty("总价格")
    private Float totalPrice;

    @ApiModelProperty("总实付价格")
    private Float totalPayPrice;

    @ApiModelProperty("邮费")
    private Float postFree;

    @ApiModelProperty("订单总折扣")
    private Float discount;
}
